﻿using System.Windows;
using System.Windows.Controls;

namespace Cupertino.Support.Views
{
    public class CupertinoTreeView :TreeView
    {
        static CupertinoTreeView()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(CupertinoTreeView), new FrameworkPropertyMetadata(typeof(CupertinoTreeView)));
        }
        //使用更改了样式的自定义Item控件替换掉默认的Item控件
        protected override DependencyObject GetContainerForItemOverride()
        {
            // return base.GetContainerForItemOverride();
            // return new TreeViewItem();
            return new CupertinoTreeViewItem();
        }
    }
}
